check if a string has a certain piece of text